package org.example;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.jms.annotation.EnableJms;
import org.springframework.jms.annotation.JmsListener;

@EnableJms
@SpringBootApplication
public class MqConsumApplication {
    public static void main(String[] args) {
        SpringApplication.run(MqConsumApplication.class);
    }
    @JmsListener(destination = "test_msg")
    public void consumTestMsg(String msg){
        System.out.printf("接受信息："+msg);
    }

}
